package Search.BST_Map;

import java.security.PublicKey;

/**
 * @author : niu niu
 * @version : 1.0.0
 * @date : 2022/11/13 14:38
 */
// key-value 模型
// 建立 key 到 value 的映射关系
public class TreeNode {
    public Long key;
    public String value;

    public TreeNode left;
    public TreeNode right;

    public TreeNode(Long key, String value) {
        this.key = key;
        this.value = value;
    }

    @Override
    public String toString() {
        return String.format("(key = %d, value = %s)", key, value);
    }
}
